import Vue from 'vue'
import Vuex from 'vuex'
import { cart } from './cart'
import { login } from './login'
import { order } from './order'
import address from './address'
import contact from './contact'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    cart,
    login,
    order,
    address,
    contact
  },
  plugins: [createPersistedState({
    storage: window.localStorage
  })]
})
